package com.ita.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ita.dao.CustomerDao;
import com.ita.pojo.Customer;
import com.ita.service.CustomerService;

@Service(value = "customerService")
public class CustomerServiceImpl implements CustomerService {
	
	@Resource(name = "customerDao")
	private CustomerDao cDao;

	@Override
	public int regist(Customer c) {

		return cDao.addUser(c);

	}

	@Override
	public Customer login(String name, String pwd) {
		
		return cDao.findUser(name, pwd);
	}

}
